package com.p900.website.service;

import com.p900.commons.domain.Advertisement;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by lenovo on 2015/5/8.
 */
public interface AdvertisementService {

    public Advertisement findAdvertisement(Long id);

    public Page<Advertisement> findAll(Pageable pageable);

    public List<Advertisement> findByStatus(Integer status);

    public Advertisement save(Advertisement advertisement);

    public void delete(Long id);
}
